using UnityEngine;
using System.Collections;

public class IdleScript : MonoBehaviour {
	
	
	// Use this for initialization
	void Start () {
	angle = 0;
	}
	float angle;
	// Update is called once per frame
	void Update () {
		//transform.Rotate(Vector3.forward, 0.1f);
		angle+=0.1f;
		if (angle>=360.0f) {
			angle = 0.0f;
		}
		float y = Mathf.Sin (angle);
		transform.position = new Vector3(transform.position.x,
			transform.position.y+(y*Time.deltaTime*1.5f),
			transform.position.z);
	}
}
